﻿package multitouch.gui {
	
	import app.core.action.RotatableScalable;
	
	public class Kaart extends RotatableScalable {
		
		private var titel:String;
		private var eenMedewerker:Boolean;
		private var rijID:int;
		private var kolomID:int;
		private var onPlaceholder:Boolean;

		public function Kaart( deTitel:String, isEenMedewerker:Boolean ) {
			titel = deTitel;
			eenMedewerker = isEenMedewerker;
			var color:int = 0x000000;
			noScale = true;
			noRotate = true;
			rijID = 0;
			kolomID = 0;
			onPlaceholder = false;

			if ( eenMedewerker ) {
				color = 0xFF0000;
			} else {
				color = 0x00FF00;
			}
			graphics.lineStyle(3, color, 1);
			graphics.beginFill(color);
			graphics.drawRect(10,10,100,50);
			graphics.endFill();
		}
		public function isMedewerker():Boolean {
			return eenMedewerker;
		}
		public function getTitel():String {
			return titel;
		}
		public function setTitel( deTitel:String ):void {
			titel = deTitel;
		}
		public function getRijID():int {
			return rijID;
		}
		public function getKolomID():int {
			return kolomID;
		}
		public function setRijID( id:int ):void {
			rijID = id;
		}
		public function setKolomID( id:int ):void {
			kolomID = id;
		}
		public function isOnPlaceholder():Boolean {
			return onPlaceholder;
		}
		public function setIsOnPlaceholder( isOnPlaceholder:Boolean ):void {
			onPlaceholder = isOnPlaceholder;
		}
	}
}
